package day2;

/**
 * ClassName：Test1
 *
 * @Author：小鱼
 * @Create：2025-08-26 10:29
 */
public class Test1 {
    public static void main(String[] args) {
        String s = "hello";
//1. 对象.getClass()
        Class<? extends String> c1 = s.getClass();
//2. 类.class
        Class c2 = String.class;
        System.out.println("c1: " + c1);
        System.out.println("c2: " + c2);
//验证同一个类的字节码对象是否唯一
        System.out.println("c1 == c2 : " + (c1 ==c2));
    }
}
